package com.keon.jianbao.ui.fragment;

import android.view.View;
import android.widget.AdapterView;

import com.keon.jianbao.R;
import com.keon.jianbao.adapter.MessageListAdapter;
import com.keon.jianbao.api.Api;
import com.keon.jianbao.api.ApiHttpClient;
import com.keon.jianbao.api.SimpleHandler;
import com.keon.jianbao.base.BaseActivity;
import com.keon.jianbao.base.BaseListAdapter;
import com.keon.jianbao.base.BaseListFragment;
import com.keon.jianbao.bean.ListEntity;
import com.keon.jianbao.bean.MessageList;
import com.keon.jianbao.bean.Msg;
import com.keon.jianbao.bean.Result;
import com.keon.jianbao.ui.widget.ItemLayout;
import com.loopj.android.http.AsyncHttpResponseHandler;

import org.apache.http.Header;
import org.json.JSONException;

import java.util.ArrayList;

/**
 * Created by keon on 2015/9/8.
 */
public class MessageListFragment extends BaseListFragment {



    @Override
    protected void sendRequestData() {
        Api.get_msg(mHandler);
    }

    @Override
    protected ListEntity parseList(String reponseData) {

        MessageList messageList = new MessageList(reponseData);

        return messageList;
    }

    @Override
    protected BaseListAdapter getListAdapter() {
        return new MessageListAdapter();
    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View view) {

    }

    @Override
    protected int getPageSize() {
        return 10000000;
    }
}
